package org.lee.bean.domain1

import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.NamedNativeQuery

import org.lee.bean.common.CustomBean;

@NamedNativeQuery(
	name=CustomBean1.TEST_QUERY1
	, query="""
select 
	p.id
	, p.name
	, pp.blog 
from 
	person1 p join person_profile1 pp on p.id = pp.id 
where p.id = ?
"""
	, resultClass=CustomBean1.class)
@Entity
class CustomBean1 extends CustomBean{
	public final static String TEST_QUERY1 = "testQuery1"
	
//	@Id int id
//	String name
//	String blog
}
